USE [ARR]
GO

/****** Object:  Table [dbo].[Months]    Script Date: 12/19/2011 13:45:22 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[Months](
	[Date] [date] NOT NULL,
 CONSTRAINT [PK_Months] PRIMARY KEY CLUSTERED 
(
	[Date] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO


INSERT INTO Months(Date)
VALUES 
('2007/01/01'),
('2007/02/01'),
('2007/03/01'),
('2007/04/01'),
('2007/05/01'),
('2007/06/01'),
('2007/07/01'),
('2007/08/01'),
('2007/09/01'),
('2007/10/01'),
('2007/11/01'),
('2007/12/01'),
('2008/01/01'),
('2008/02/01'),
('2008/03/01'),
('2008/04/01'),
('2008/05/01'),
('2008/06/01'),
('2008/07/01'),
('2008/08/01'),
('2008/09/01'),
('2008/10/01'),
('2008/11/01'),
('2008/12/01'),
('2009/01/01'),
('2009/02/01'),
('2009/03/01'),
('2009/04/01'),
('2009/05/01'),
('2009/06/01'),
('2009/07/01'),
('2009/08/01'),
('2009/09/01'),
('2009/10/01'),
('2009/11/01'),
('2009/12/01'),
('2010/01/01'),
('2010/02/01'),
('2010/03/01'),
('2010/04/01'),
('2010/05/01'),
('2010/06/01'),
('2010/07/01'),
('2010/08/01'),
('2010/09/01'),
('2010/10/01'),
('2010/11/01'),
('2010/12/01'),
('2011/01/01'),
('2011/02/01'),
('2011/03/01'),
('2011/04/01'),
('2011/05/01'),
('2011/06/01'),
('2011/07/01'),
('2011/08/01'),
('2011/09/01'),
('2011/10/01'),
('2011/11/01'),
('2011/12/01'),
('2012/01/01'),
('2012/02/01'),
('2012/03/01'),
('2012/04/01'),
('2012/05/01'),
('2012/06/01'),
('2012/07/01'),
('2012/08/01'),
('2012/09/01'),
('2012/10/01'),
('2012/11/01'),
('2012/12/01'),
('2013/01/01'),
('2013/02/01'),
('2013/03/01'),
('2013/04/01'),
('2013/05/01'),
('2013/06/01'),
('2013/07/01'),
('2013/08/01'),
('2013/09/01'),
('2013/10/01'),
('2013/11/01'),
('2013/12/01'),
('2014/01/01'),
('2014/02/01'),
('2014/03/01'),
('2014/04/01'),
('2014/05/01'),
('2014/06/01'),
('2014/07/01'),
('2014/08/01'),
('2014/09/01'),
('2014/10/01'),
('2014/11/01'),
('2014/12/01'),
('2015/01/01'),
('2015/02/01'),
('2015/03/01'),
('2015/04/01'),
('2015/05/01'),
('2015/06/01'),
('2015/07/01'),
('2015/08/01'),
('2015/09/01'),
('2015/10/01'),
('2015/11/01'),
('2015/12/01'),
('2016/01/01'),
('2016/02/01'),
('2016/03/01'),
('2016/04/01'),
('2016/05/01'),
('2016/06/01'),
('2016/07/01'),
('2016/08/01'),
('2016/09/01'),
('2016/10/01'),
('2016/11/01'),
('2016/12/01'),
('2017/01/01'),
('2017/02/01'),
('2017/03/01'),
('2017/04/01'),
('2017/05/01'),
('2017/06/01'),
('2017/07/01'),
('2017/08/01'),
('2017/09/01'),
('2017/10/01'),
('2017/11/01'),
('2017/12/01'),
('2018/01/01'),
('2018/02/01'),
('2018/03/01'),
('2018/04/01'),
('2018/05/01'),
('2018/06/01'),
('2018/07/01'),
('2018/08/01'),
('2018/09/01'),
('2018/10/01'),
('2018/11/01'),
('2018/12/01'),
('2019/01/01'),
('2019/02/01'),
('2019/03/01'),
('2019/04/01'),
('2019/05/01'),
('2019/06/01'),
('2019/07/01'),
('2019/08/01'),
('2019/09/01'),
('2019/10/01'),
('2019/11/01'),
('2019/12/01'),
('2020/01/01'),
('2020/02/01'),
('2020/03/01'),
('2020/04/01'),
('2020/05/01'),
('2020/06/01'),
('2020/07/01'),
('2020/08/01'),
('2020/09/01'),
('2020/10/01'),
('2020/11/01'),
('2020/12/01')